package com.hobbo.ijkbus.struct;

import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;

/**
 * @author zsc
 * @create 2019/4/12 0012
 * @Describe
 */
public class BaseFragment extends Fragment{
    protected FunctionManager mFunctionManager;

    public void setFunctionManager(FunctionManager functionManager) {
        mFunctionManager = functionManager;
    }

    public FunctionManager getFunctionManager() {
        return mFunctionManager;
    }


    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        ((BaseActivity)context).setFunctionForFragment(getTag());
    }
}
